// ---------------------------------------------------------------------------------------
package items {
	
	// FLASH IMPORTS
	import flash.display.MovieClip;
	
	
	// -----------------------------------------------------------------------------------
	public class SortableItem {
		
		private var _uiID:uint;
		
		private var _uiRow:uint;
		private var _uiCol:uint;
		private var _uiWidth:uint;
		private var _uiHeight:uint;

		private var _mc:MovieClip;
		
		
		// -------------------------------------------------------------------------------
		// GETTERS & SETTERS
		// -------------------------------------------------------------------------------
		public function get uiID():uint { return ( _uiID ); }
		
		public function get uiRow():uint { return ( _uiRow ); }
		public function get uiCol():uint { return ( _uiCol ); }
		public function get uiWidth():uint { return ( _uiWidth ); }
		public function get uiHeight():uint { return ( _uiHeight ); }
		
		public function get mc():MovieClip { return ( _mc ); }
		
		public function get uiEndRow():uint { return ( (_uiRow + _uiHeight - 1) ); }
		public function get uiEndCol():uint { return ( (_uiCol + _uiWidth - 1) ); }
		

		// -------------------------------------------------------------------------------
		// CONSTRUCTOR
		// -------------------------------------------------------------------------------
		public function SortableItem( id:uint, row:uint, col:uint,
		                              w:uint,  h:uint,   mc:MovieClip ) {
			
			_uiID = id;
			
			_uiRow    = row;
			_uiCol    = col;
			_uiWidth  = w;
			_uiHeight = h;
			
			_mc = mc;
		}
	}
}